<?php
class LanguageController extends AppController {

	var $name = 'Language';
	var $uses=array();
	var $components = array('Auth');
	
	function beforeFilter() {
		$this->Auth->allow('*');  
	}
	
	
	function change($lang_code)
	{
		$_SESSION['lang']=$lang_code;
//		debug($lang_code); die();
		$this->redirect($this->referer());		
	}
}
?>